<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>VueJs指令：v-text与v-html</title>
</head>
<body>

    <div id="app">
       <div v-html="content" @click="clickme" v-bind:title="name"></div>
       <div v-html="content" @click="clickme" :title="name"></div>
    </div>

    <script src="js/vue.min.js"></script>
    <script>

        // 属性指令
        var vue = new Vue({
            el:"#app",
            data:{
                name:"飞飞",
                content:"<strong>我是一个带有标签的文本</strong>",
                num:11,
                price:11.1,
                male:1
            },
            methods:{
                clickme:function(){
                    alert("点我")
                }
            }
        })

    </script>

</body>
</html>